﻿using AddRemoveUpdateCustomer;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using System;
using NorthwindDBO;

namespace SolutionTests
{
    
    
    /// <summary>
    ///This is a test class for CustomerModifierTest and is intended
    ///to contain all CustomerModifierTest Unit Tests
    ///</summary>
    [TestClass()]
    public class CustomerModifierTest
    {


        private TestContext testContextInstance;

        /// <summary>
        ///Gets or sets the test context which provides
        ///information about and functionality for the current test run.
        ///</summary>
        public TestContext TestContext
        {
            get
            {
                return testContextInstance;
            }
            set
            {
                testContextInstance = value;
            }
        }

        #region Additional test attributes
        // 
        //You can use the following additional attributes as you write your tests:
        //
        //Use ClassInitialize to run code before running the first test in the class
        //[ClassInitialize()]
        //public static void MyClassInitialize(TestContext testContext)
        //{
        //}
        //
        //Use ClassCleanup to run code after all tests in a class have run
        //[ClassCleanup()]
        //public static void MyClassCleanup()
        //{
        //}
        //
        //Use TestInitialize to run code before running each test
        //[TestInitialize()]
        //public void MyTestInitialize()
        //{
        //}
        //
        //Use TestCleanup to run code after each test has run
        //[TestCleanup()]
        //public void MyTestCleanup()
        //{
        //}
        //
        #endregion


        /// <summary>
        ///A test for AddCustomer
        ///</summary>
        [TestMethod()]
        [DeploymentItem("AddRemoveUpdateCustomer.exe")]
        public void AddCustomerTest()
        {
            string customerId = string.Empty; // TODO: Initialize to an appropriate value
            string companyName = string.Empty; // TODO: Initialize to an appropriate value
            CustomerModifier_Accessor.AddCustomer(customerId, companyName);
            Assert.Inconclusive("A method that does not return a value cannot be verified.");
        }

        /// <summary>
        ///A test for DeleteCustomer
        ///</summary>
        [TestMethod()]
        [DeploymentItem("AddRemoveUpdateCustomer.exe")]
        public void DeleteCustomerTest()
        {
            string customerId = string.Empty; // TODO: Initialize to an appropriate value
            CustomerModifier_Accessor.DeleteCustomer(customerId);
            Assert.Inconclusive("A method that does not return a value cannot be verified.");
        }

        /// <summary>
        ///A test for GetCustomerById
        ///</summary>
        [TestMethod()]
        [DeploymentItem("AddRemoveUpdateCustomer.exe")]
        public void GetCustomerByIdTest()
        {
            string customerID = string.Empty; // TODO: Initialize to an appropriate value
            NorthwindEntities entities = null; // TODO: Initialize to an appropriate value
            Customer expected = null; // TODO: Initialize to an appropriate value
            Customer actual;
            actual = CustomerModifier_Accessor.GetCustomerById(customerID, entities);
            Assert.AreEqual(expected, actual);
            Assert.Inconclusive("Verify the correctness of this test method.");
        }

        /// <summary>
        ///A test for UpdateCustomer
        ///</summary>
        [TestMethod()]
        [DeploymentItem("AddRemoveUpdateCustomer.exe")]
        public void UpdateCustomerTest()
        {
            string customerId = string.Empty; // TODO: Initialize to an appropriate value
            string newCompanyName = string.Empty; // TODO: Initialize to an appropriate value
            CustomerModifier_Accessor.UpdateCustomer(customerId, newCompanyName);
            Assert.Inconclusive("A method that does not return a value cannot be verified.");
        }
    }
}
